package www.lagou.entity;
/*
    id` INT(11) NOT NULL AUTO_INCREMENT,
    `cardid` VARCHAR(100) DEFAULT NULL,
    `tratype` VARCHAR(100) DEFAULT NULL,
    `tramoney` DOUBLE DEFAULT NULL,
    `tradate` DATETIME DEFAULT NULL,*/

import java.io.Serializable;


//按照javabean的要求，虽然,serializable序列化并没有用到
public class Transaction implements Serializable {
        private int id;
        private String cardid;
        private String tratype;
        private double tramoney;
        private String tradate;

    public Transaction() {
    }

    public Transaction(int id, String cardid, String tratype, double tramoney, String tradate) {
        this.id = id;
        this.cardid = cardid;
        this.tratype = tratype;
        this.tramoney = tramoney;
        this.tradate = tradate;
    }

    public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCardid() {
            return cardid;
        }

        public void setCardid(String cardid) {
            this.cardid = cardid;
        }

        public String getTratype() {
            return tratype;
        }

        public void setTratype(String tratype) {
            this.tratype = tratype;
        }

        public double getTramoney() {
            return tramoney;
        }

        public void setTramoney(double tramoney) {
            this.tramoney = tramoney;
        }

        public String getTradate() {
            return tradate;
        }

        public void setTradate(String tradate) {
            this.tradate = tradate;
        }

        @Override
        public String toString() {
            return "Transaction{" +
                    "id=" + id +
                    ", cardid='" + cardid + '\'' +
                    ", tratype='" + tratype + '\'' +
                    ", tramoney=" + tramoney +
                    ", tradate='" + tradate + '\'' +
                    '}';
        }
    }
